import Vue from 'vue'
import Vuex from 'vuex'
import user from './use/user'
// import persistedstate from 'vuex-persistedstate'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    user
  }

  /* 将需要持久化的数据给他来个持久化 */
  /*  plugins: [
    persistedstate({
      paths: ['user.token']
    })
  ] */
})

export default store
